-- GENERATED SPELL FOR [Scarlet Commander Rodrick] --


function spell0_29000(pUnit, Event) --@Cleave,n/a--
pUnit:FullCastSpellOnTarget(52835,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_29000', 637, 1)
end

function spell1_29000(pUnit, Event) --@Holy Light,Heal--
pUnit:FullCastSpellOnTarget(31713,pUnit)
pUnit:RegisterEvent('Sorts_29000', 2500, 1)
end

function Sorts_29000(pUnit, Event)
local choix_sorts_29000 = math.random(0, 1)
if choix_sorts_29000 == 0 then
pUnit:RegisterEvent('spell0_29000', 1, 1)
end
if choix_sorts_29000 == 1 then
pUnit:RegisterEvent('spell1_29000', 1, 1)
end
end

function mob29000_Action(pUnit, Event)
pUnit:RegisterEvent('Sorts_29000', math.random(1500, 3000), 1)
end

function mob29000_Leave(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob29000_Kill(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob29000_Die(pUnit, Event)
pUnit:RemoveEvents();
end

RegisterUnitEvent(29000, 1, 'mob29000_Action')
RegisterUnitEvent(29000, 2, 'mob29000_Leave')
RegisterUnitEvent(29000, 3, 'mob29000_Kill')
RegisterUnitEvent(29000, 4, 'mob29000_Die')
